function parenttab(title,url,id) {
    window.parent.open_page(title,url,id);
}
function pagejump() {
    return function (obj,first) {
        console.log(obj);
        if(!first){
            var search=/[^?search=]+\w+[^&page=]/g;
            var url="/model/welcome.aspx?search=&page=1#!fenye=1";
            if(search.test(location.search)){

                url=location.pathname+"?search="+location.search.match(search)+"&page="+(obj.curr)+"#!fenye="+obj.curr;
                console.log(url);
            }else{
                url=location.pathname+"?page="+(obj.curr)+"#!fenye="+obj.curr;
                console.log(url);
            }
            location.assign(url);
        }

    }
}

function searchButton() {

    var search = $("#articleSearch").val();
    if(search.length==0){
        Popup.msg("搜索框不能有空",{icon: 5});
        return;
    }
    location.assign(location.pathname+"?search="+search);
}